#include <stdio.h>

int main()

{
	int arr[10] = { 0 };
	for (int i = 0; i < 10; i++)
	{
		scanf_s("%d", &arr[i]);
	}
	int sum = 0;
	for (int j = 0; j < 10; j++)
	{
		printf("%d ", arr[9-j]);
	}
	return 0;

}